package org.snail.other.bean;

import lombok.Data;
import lombok.ToString;
import org.snail.base.BaseParam;
import org.snail.employee.bean.AddressDO;
import org.snail.employee.bean.EmployeesDO;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@Data
public class GroupDO extends BaseParam {
    private Long id;
    private String chatId;     //自定义维护的群组，根据钉钉会话产生
    private String ownerId;
    private String ownerName;    //群主姓名
    private String empName;    //群人员姓名
    private String groupName;
    private String hookUrl;
    private Integer groupType;     //群组类型
    private List<EmployeesDO> employeesDOList;
    private List<AddressDO> groupEmpList;
    private List<Integer> empIds;    //人员数组
    private List<String> addUserIds;    //添加人员
    private List<String> delUserIds;    //修改人员
    private Integer saveType;    //1、修改，2、新增

    public GroupDO(Long id, String chatId, String groupName, String hookUrl, Integer groupType) {
        this.id = id;
        this.chatId = chatId;
        this.groupName = groupName;
        this.hookUrl = hookUrl;
        this.groupType = groupType;
    }

    public GroupDO(int isDel, Date createTime, Long id, String chatId, String ownerId, Integer groupType) {
        super(isDel, createTime);
        this.id = id;
        this.chatId = chatId;
        this.ownerId = ownerId;
        this.groupType = groupType;
    }

    public GroupDO() {
    }

}